package util;

import java.sql.DriverManager;
import com.mysql.jdbc.Connection;

public class ConexaoBD {
	public static Connection getConnection(){
		//conectando ao servidor MySQL
		  try {
			Class.forName("com.mysql.jdbc.Driver");
			return (Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/centralestagio","root","");
		  }catch (Exception e) {
			   e.printStackTrace();
		}
		return null;
	}

}
